package com.example.zqm.git72.Model;
import com.example.zqm.git72.Service.ActivityService;
import com.example.zqm.git72.Service.ClubService;
import com.example.zqm.git72.Service.CollectionService;

import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
/**
 * Created by Administrator on 2017/4/26.
 */

public class CollectionModel {
    private Retrofit retrofit;
    public CollectionModel(){

        //联网获取网络上的数据
         retrofit = new Retrofit.Builder()
                .baseUrl("http://172.24.10.175/")
                .addConverterFactory(GsonConverterFactory.create())
                .build();

    }

    public Call getListclub(String user_id,String fans_type)
    {
        CollectionService collectionService = retrofit.create(CollectionService.class);
        return collectionService.getListclub(user_id,fans_type);
    }

}
